#pragma once

#include <QGradient>

namespace util {
  //
  // Gradient_interpolator
  //

  class GradientInterpolator : public std::unary_function<qreal, QColor> {
  public:
    explicit GradientInterpolator(const QGradientStops &Stops_);
    result_type operator()(argument_type Arg_) const;

  private:
    QGradientStops mStops;
  };
} // namespace util